package cn.blogger.dao;

import cn.blogger.pojo.TComment;
import cn.blogger.pojo.TBlog;
import cn.blogger.pojo.TUser;
import cn.blogger.vo.CommentVO;

import java.util.List;

public interface CommentDao {
    //根据评论id集合删除所有评论及其子评论
    public void deleteComment(List list);

    public int addComment(TComment TComment);
    //查询某博客文章或留言板下的所有评论
    public List<TComment> commentListQuery(CommentVO commentVO);
    //查询該pingping'lun论uid
    public Integer firstCommentIdQuery(Integer to_uid);

    public List<TComment> commentListAll();
    //查询用户所有的评论uid
    public List<Integer> userCommentQuery(Integer userId);
    //查询博客文章下所有评论uid
    public List<Integer> blogCommentQuery(Integer blogId);
}
